package com.movitech.mobile.cz.base.bizconfig.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.bizconfig.entity.SSuppliersCategoryTemplate;
import com.movitech.mobile.cz.base.bizconfig.entity.ext.ExtSSuppliersCategoryTemplate;
import com.movitech.mobile.cz.base.bizconfig.entity.ext.SSuppliersCategoryTemplateFindRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 供应商分类--模板设置 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-02-28
 */
@Component
@Mapper
public interface ExtSSuppliersCategoryTemplateMapper extends BaseMapper<ExtSSuppliersCategoryTemplate> {


    List<ExtSSuppliersCategoryTemplate> findEvaluationPerformScoresTemplateList(SSuppliersCategoryTemplateFindRequest sSuppliersCategoryTemplateFindRequest);

	long searchSuppliersCategoryTemplateListCounts(Map<String, Object> map);

	List<ExtSSuppliersCategoryTemplate> searchSuppliersCategoryTemplateList(Map<String, Object> map);

	List<ExtSSuppliersCategoryTemplate> getSuppliersCategoryTemplateByCategoryAndType(Map<String, Object> params);

	List<ExtSSuppliersCategoryTemplate> getSupplierCategoryTemplateNames(@Param("categoryIds") List<String> categoryIds,@Param("templateType") Integer templateType);
}
